import { http } from '@/utils/http';

export function postColorName(params:any) {
  return http({
    url: `/api/name`,
    method: 'post',
    data:params,
  })
}

export function postColorKey(params:any) {
  return http({
    url: `/api/key`,
    method: 'post',
    data:params,
  })
}

export function postColorHex(params:any) {
  return http({
    url: `/api/hex`,
    method: 'post',
    data:params,
  })
}

export function postColorRandom(params?:any) {
  return http({
    url: `/api/random`,
    method: 'post',
    data:params,
  })
}
